/*
 * @Description: 
 * @Version: @1.0.0
 * @Autor: LuLu
 * @Date: 2023-06-30 18:16:00
 * @LastEditors: LuLu
 * @LastEditTime: 2025-01-15 18:12:33
 */
import request from '@/utils/request'

// 获取所有
export function getClassifiedList(data) {
  return request({
    url: '/certificate/list',
    method: 'get',
    params:data
  })
}

// 获取新增
export function getAdd(data) {
    return request({
      url: '/certificate',
      method: 'post',
      data
    })
  }

// 修改
export function getUpdate(data) {
    return request({
      url: '/certificate',
      method: 'put',
      data
    })
  }

  // 删除
export function getDet(data) {
    return request({
        url: '/certificate/del/' + data.id,
        method: 'delete',
        data
    })
}
// 上架下架
export function editUnOrUp(data) {
  return request({
      url: '/certificate',
      method: 'PUT',
      data
  })
}